#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int n;
    cin >> n;
    vector<int> ans(n);
    int begin1 = 1, begin2 = n;
    for (int i = 0; i < n; i++)
    {
        if (i % 2 == 0)
        {
            ans[i] = begin1++;
        }
        else ans[i] = begin2--;
    }
    for (auto e : ans)cout << e << ' ';
    return 0;
}

